cmake_minimum_required(VERSION 3.10)
project(Ceres_Tutorial)

set(CMAKE_CXX_STANDARD 11)

find_package(Ceres REQUIRED)
#https://ceres-solver.googlesource.com/ceres-solver/+/master/cmake/FindGlog.cmake
include(/usr/local/lib/cmake/Ceres/FindGlog.cmake)

include_directories(${CERES_INCLUDE_DIRS})
include_directories(${GLOG_INCLUDE_DIRS})

add_executable(Ceres_Tutorial main.cpp)
target_link_libraries(Ceres_Tutorial ${CERES_LIBRARIES} ${GLOG_LIBRARIES})